<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>

    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .nav {
            display: flex;
            flex-wrap: wrap;
            width: 500px;
            margin: 0 auto;
            background-color: #fff;
            border: 1px solid #ccc;
        }
        .nav ul {
            display: flex;
            width: 500px;
        }
        .nav ul li {
            flex: 1;
            list-style: none;
            text-align: center;
        }
        .shuju {
            display: flex;
            width: 500px;
        }
        .shuju ul li {
            
            flex: 1;
        }
    </style>

</head>

<body>
    <div id="root">
        <div class="nav">
            <ul>
                <li v-for="(item, index) in navItem" :key="index">{{item}}</li>
            </ul>
            <div class="shuju">
                <ul>
                    <li>{{student.yuehan.name}}</li>
                    <li>{{student.yuehan.kemu}}</li>
                    <li>{{student.yuehan.chengji}}</li>
                    <li>{{student.yuehan.caozuo}}</li>
                </ul>
            </div>
        </div>
    </div>

    <script>
        new Vue({
            el: '#root',
            data() {
                return {
                    navItem:['姓名','科目','成绩','操作'],
                    student:{
                        yuehan:{name:'yuehan',kemu:'数学',chengji:'100',caozuo:'亲一个'}
                    }
                }
            },
            methods: {
            },
        })
    </script>
</body>

</html>